<extend name="Public/index"/>
<!-- 静态资源 -->
<block name="pageStatic">
    <link href="__CSS__/style.css" rel="stylesheet"/>
    <script src="__JS__/jquery-1.10.1.min.js"></script>
    <script src="__JS__/scrolltopcontrol.js"></script>
    <script src="__JS__/WapCircleImg.js"></script>
    <script src="__JS__/navigation.js"></script>
    <script src="__JSPLUGINS__/layer/layer.js"></script>
    <script type="text/javascript" src="__JS__/navfix.js"></script>
    <script type="text/javascript">
        $(document).ready(function(e) {
            $('#mynav').navfix(0,999);
        });
        //第一个值： 你期望导航在距离顶部多少的位置浮动
        //第二个值： 导航zindex
    </script>
</block>
<!-- 头部 -->
<block name="pageHeader">
    <header class="header">
        <a class="logo" href="{:U('Index/index')}">
            <img src="__IMG__/logo1_0.png" alt=""/>
        </a>
        <!--<a class="menu" href="{:U('Category/index')}">网站导航</a>-->
        <a class="magnifier" style="right: 1em" href="{:U('Search/index')}">搜索</a>

    </header>
</block>
<!-- 内容 -->
<block name="pageContent">
    <div class="guidance" id="mynav">
        <div class="navigation">
            <dl class="one-level">
                <volist name="cateTree" id="vo">
                    <dd><a href="{:U('Category/lists', array('cateid'=>$vo['_child'][0]['id']))}">{$vo.title}</a></dd>
                </volist>
                <!--<think:cate name="FinanceEyclopedia">-->
                    <!--<dd><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></dd>-->
                <!--</think:cate>-->
                <!--<dd style="text-align: left;"><a href="#">期刊</a></dd>-->
                <dd><a href="{:U('order/goods')}">活动沙龙</a></dd>
                <dd><a href="{:U('ask/askLists')}">问答中心</a></dd>
            </dl>
            <!--<span class="set"></span>-->
        </div>
        <div class="second index-second">
            <ul class="index-two-level" style="height: 35px">
                <!--
                <think:cate name="mrbd">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="lsgc">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="P2Pgc">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="dzbk">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="hjwh">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="kjpl">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="gjgc">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>
                <think:cate name="wlsj">
                    <li><a href="{:U('Category/lists', array('cateid'=>$cate['id']))}">{$cate.title}</a></li>
                </think:cate>-->
                <li><a href="{:U('Order/goods?type=1')}">HR沙龙</a></li>
                <li><a href="{:U('Order/goods?type=2')}">劳动法沙龙</a></li>
                <li><a href="{:U('Order/goods?type=3')}">职涯沙龙</a></li>
                <li><a href="{:U('Ask/askLists')}">问答中心</a></li>
            </ul>
        </div>
    </div>
        <!-- 广告 -->
        <div class="banner">
            <div id="imglist" class="roll_img_mb_01">
                <div class="img_box">
                    <ul>
                        <volist name="adList" id="vo">
                            <li><a href="{$vo.url|default=" javascript:;"}"><img src="{$vo.photo|urlAddDomain}"></a>
                            </li>
                        </volist>
                    </ul>
                </div>
                <div class="nav_box">
                    <ul id="li_on_name">
                        <volist name="adList" id="vo">
                            <li></li>
                        </volist>
                    </ul>
                </div>
                <script type="text/javascript">
                    WapCircleImg_01("imglist", 4, true);
                </script>
            </div>
        </div>
    <div class="list-box" style="margin-top: 0">
        <!-- 最新 -->
        <ul>
            <volist name="todayList" id="vo">
                <li>
                    <div class="list-pic"><a href="{:U('Article/detail', array('id'=>$vo['id']))}"><img src="{$vo.cover_id|get_cover='path'}"/></a></div>
                    <div class="list-con">
                        <h5><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.title}</a></h5>

                        <p><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.description}</a></p>

                        <!-- <div class="time">{$vo.create_time|time_format} <a href="javascript:;">{$vo.source}</a></div> -->
                        <div class="collection"></a> <a class="tb2" href="javascript:;" article-id="{$vo.id}">{$vo.bookmark}</a></div>
                    </div>
                </li>
            </volist>
        </ul>
    </div>
    <div class="list-box">
        <h5 class="generic">{$TopComments.title}</h5>
        <ul>
            <volist name="TopComments.docList" id="vo">
                <li <if condition="$key gt 3">style="display:none;" class="li_more"</if>>
                    <div class="list-pic"><a href="{:U('Article/detail', array('id'=>$vo['id']))}"><img src="{$vo.cover_id|get_cover='path'}"></a></div>
                    <div class="list-con">
                        <h5><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.title}</a></h5>

                        <p><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.description}</a></p>

                        <!-- <div class="time">{$vo.create_time|time_format} <a href="javascript:;">{$vo.source}</a></div> -->
                        <div class="collection"></a> <a class="tb2" href="javascript:;" article-id="{$vo.id}">{$vo.bookmark}</a></div>
                    </div>
                </li>
            </volist>
        </ul>
        <div class="button-btn"><a href="javascript:;" uri="{:U('Category/lists', array('cateid'=>$TopComments['id']))}" is_child="{$cate['_child']}"><if condition="count($TopComments['docList']) gt 3">展示更多<else />进入频道页</if></a></div>
    </div>
    <notempty name="adChannel1">
        <div class="add"><a href="{$adChannel1.url|default="javascript:;"}"><img src="{$adChannel1.photo|urlAddDomain}" alt="{$adChannel1.title}" /></a></div>
    </notempty>
    <div class="list-box">
        <h5 class="generic">{$DomesticFinance.title}</h5>
            <volist name="DomesticFinance.docList" id="vo">
                <li <if condition="$key gt 3">style="display:none;" class="li_more"</if>>
                    <div class="list-pic"><a href="{:U('Article/detail', array('id'=>$vo['id']))}"><img src="{$vo.cover_id|get_cover='path'}"></a></div>
                    <div class="list-con">
                        <h5><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.title}</a></h5>

                        <p><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.description}</a></p>

                        <!-- <div class="time">{$vo.create_time|time_format} <a href="javascript:;">{$vo.source}</a></div> -->
                        <div class="collection"></a> <a class="tb2" href="javascript:;" article-id="{$vo.id}">{$vo.bookmark}</a></div>
                    </div>
                </li>
            </volist>
            <div class="button-btn"><a href="javascript:;" uri="{:U('Category/lists', array('cateid'=>$DomesticFinance['id']))}" is_child="{$cate['_child']}"><if condition="count($DomesticFinance['docList']) gt 3">展示更多<else />进入频道页</if></a></div>
    </div>
    <notempty name="adChannel2">
        <div class="add"><a href="{$adChannel2.url|default="javascript:;"}"><img src="{$adChannel2.photo|urlAddDomain}" alt="{$adChannel2.title}" /></a></div>
    </notempty>
    <div class="list-box">
        <h5 class="generic">{$InternationalFinance.title}</h5>
        <volist name="InternationalFinance.docList" id="vo">
            <li <if condition="$key gt 3">style="display:none;" class="li_more"</if>>
                <div class="list-pic"><a href="{:U('Article/detail', array('id'=>$vo['id']))}"><img src="{$vo.cover_id|get_cover='path'}"></a></div>
                <div class="list-con">
                    <h5><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.title}</a></h5>

                    <p><a href="{:U('Article/detail', array('id'=>$vo['id']))}">{$vo.description}</a></p>

                    <!-- <div class="time">{$vo.create_time|time_format} <a href="javascript:;">{$vo.source}</a></div> -->
                    <div class="collection"><a class="tb2" href="javascript:;" article-id="{$vo.id}">{$vo.bookmark}</a></div>
                </div>
            </li>
        </volist>
        <div class="button-btn"><a href="javascript:;" uri="{:U('Category/lists', array('cateid'=>$InternationalFinance['id']))}" is_child="{$cate['_child']}"><if condition="count($InternationalFinance['docList']) gt 3">展示更多<else />进入频道页</if></a></div>
    </div>

    <div class="back-to-top">
        <p> <a class="tiwen" href="{:U('Ask/askLists')}">提问</a> </p>
        <p> <a class="genwng" href="javascript:void(0);"><img src="__IMG__/topback.png" alt=""/></a> </p>
    </div>
</block>
<block name="pageJavascript">
    <script>
        $(".list-box .button-btn a").click(function(){
            var li_more = $(this).parent().parent().find('.li_more');
            // 判断是否为显示状态
            var is_hide = li_more.is(":hidden");
            console.log(is_hide);
            if(li_more.length>0 && is_hide){    // 有隐藏的内容
                $(".list-box .li_more").hide(); // 隐藏所有已展开的列表
                $(".list-box .button-btn a").each(function(){
                    var li_more_hidden = $(this).parent().parent().find('.li_more:hidden');
                    if(li_more_hidden.length>0)
                        $(this).html('展示更多');
                })
                li_more.show();
                $(this).html('进入频道页');
            }else{
                // li_more.hide();
                // $(this).html('展示更多');
                location.href = $(this).attr('uri')
            }
        })
    </script>
</block>